'use client';

import React from 'react';
import Header from '@/components/layout/Header';
import Footer from '@/components/layout/Footer';
import FloatingConsultation from '@/components/layout/FloatingConsultation';
import { I18nextProvider } from 'react-i18next';
import i18n from '@/locales/i18n';
import StoreProvider from '@/store/provider';
import AntdRegistry from '@/lib/AntdRegistry';

interface StoreWrapperProps {
    children: React.ReactNode;
}

const StoreWrapper: React.FC<StoreWrapperProps> = ({ children }) => {
    return (
        <StoreProvider>
            <AntdRegistry>
                <I18nextProvider i18n={i18n}>
                    <Header />
                    <main className="min-h-screen pt-16">
                        {children}
                    </main>
                    <Footer />
                    <FloatingConsultation />
                </I18nextProvider>
            </AntdRegistry>
        </StoreProvider>
    );
};

export default StoreWrapper; 